import apis from '@/services/api'
import {request, METHOD, removeAuthorization} from '@/utils/request'

/**
 * 获取通用字典列表
 * @param {Object} type
 */
export function getSeries(type) {
	return request(apis.GET_SERIES + type, METHOD.POST)
}

/**
 * 获取项目类型树结构
 */
export function getXmlxTree() {
	return request(apis.GET_XMLX_TREE, METHOD.POST_PARAM, {})
}

/**
 * 获取项目单位树结构
 */
export function getXmdwTree() {
	return request(apis.GET_XMDW_TREE, METHOD.POST)
}